
<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" th:replace="layout/commonlayout(title='课题管理页')"><!-- layout文件路径-->



<th:block th:fragment="css">
    <!--如果没有内容，请保持 -->
    <!--DataTables [ OPTIONAL ]-->
    <link rel="stylesheet" href="/plugins/select2/css/select2.min.css">
    <link rel="stylesheet" href="/plugins/datatables/media/css/dataTables.bootstrap.css">
    <link rel="stylesheet" href="/plugins/datatables/extensions/Responsive/css/responsive.dataTables.min.css">
    <link rel="stylesheet" href="/plugins/webuploader-0.1.5/webuploader.css">

    <style>
        .avatar{
            max-width: 100px;
        }
    </style>
</th:block>

<div th:fragment="content">
    <!--Page content-->
    <!--===================================================-->
    <div id="page-content">
        <div class="row">
            <div class="col-sm-12">
                <div class="panel">
                    <div class="panel-body ">
                        <div class="row" style="padding-bottom: 20px;">
                            <div class="col-md-3">
                                <h3 class="panel-title  " style="padding-left:0;">课题列表
                                </h3>
                            </div>

                            <div class="col-md-9">
                                <button class="btn btn-danger btn-labeled pull-right" style="margin-left: 20px;" onclick="batchRemove();">
                                    <i class="btn-label ion-ios-trash-outline"></i> 批量删除
                                </button>

                                <button class="btn btn-success btn-labeled pull-right" onclick="showAddModel();" style="margin-left: 20px;">
                                    <i class="btn-label ion-plus-round"></i> 新增
                                </button>
                                <div class="pull-right">
                                    <div id="uploader-demo">
                                        <div id="fileList" class="uploader-list"></div>
                                        <div id="filePicker" class="head-scu-btn upload-btn">导入Excel</div>
                                    </div>
                                </div>

                                <div class="btn-group dropdown pull-right" >
                                    <button class="btn btn-info" onclick="outExcel();">
                                        <i class="ion-ios-upload-outline"></i> 导出Excel
                                    </button>
                                    <button class="btn btn-info dropdown-toggle dropdown-toggle-icon" data-toggle="dropdown" type="button" aria-expanded="false">
                                        <i class="dropdown-caret"></i>
                                    </button>
                                    <ul class="dropdown-menu" style="">
                                        <li><a href="#" onclick="outExcel(true);">导出当前内容</a></li>
                                    </ul>
                                </div>
                            </div>
                        </div>

                        <div style="clear:both;">
                        </div>

                        <div class="panel-body">
                            <form class="form-inline" id="srForm" style="margin-bottom: 20px;">

                                <div class="form-group">
                                    <label for="srth_num" class="control-label">届</label>
                                    <select class="form_control" id="srth_num" name="srth_num"
                                            style="width: 200px">

                                    </select>
                                </div>

                                <div class="form-group">
                                    <label for="srsubject_name" class="control-label">课题</label>
                                    <input type="text" id="srsubject_name" name="srsubject_name" class="form-control" placeholder="" data-opera="like">
                                </div>

                                <div class="form-group">
                                    <label for="srs_no" class="control-label">学号</label>
                                    <input type="text" id="srs_no" name="srs_no" class="form-control" placeholder="" data-opera="like">
                                </div>
                                <div class="form-group">
                                    <label for="srstudent_name" class="control-label">学生</label>
                                    <input type="text" id="srstudent_name" name="srstudent_name" class="form-control" placeholder="" data-opera="like">
                                </div>
<!--                                <div class="form-group">-->
<!--                                    <label for="srclass_id" class="control-label">班级</label>-->
<!--                                    &lt;!&ndash;                             <input type="text" id="srgrade_id" name="srgrade_id" class="form-control" placeholder="" >&ndash;&gt;-->
<!--                                    <select class="form_control" id="srclass_id" name="srclass_id"-->
<!--                                            style="width: 300px">-->

<!--                                    </select>-->
<!--                                </div>-->

                                <a class="btn btn-primary" onclick="searchTable();"><i class="fa fa-search" aria-hidden="true"></i> 查询</a>
                            </form>

                            <!--- common table ---->
                            <div class="panel panel-bordered-primary">
                                <div class="panel-body">
                                    <table id="subject_Table" data-mobile-responsive="true" class="table table-striped table-bordered  hover" cellspacing="0" width="100%">
                                    </table>
                                </div>
                            </div>
                        </div>

                    </div>
                </div>
            </div>
        </div>
    </div>
    <!--===================================================-->
    <!--End page content-->
</div>

<div th:fragment="scripts">
    <!--如果没有内容，请保持 -->
    <!--shiro控制bootstraptable行内按钮看见性 来自bootdo的创新方案 -->
    <div>
        <script type="text/javascript">
            var s_add_h = 'hidden';
            var s_edit_h = 'hidden';
            var s_remove_h = 'hidden';
        </script>
    </div>

    <div shiro:hasPermission="grade:subject:add">
        <script type="text/javascript">
            s_add_h = '';
        </script>
    </div>

    <div shiro:hasPermission="grade:subject:edit">
        <script type="text/javascript">
            s_edit_h = '';
        </script>
    </div>

    <div shiro:hasPermission="grade:subject:remove">
        <script type="text/javascript">
            var s_remove_h = '';
        </script>
    </div>

    <!--DataTables [ OPTIONAL ]-->
    <!--<script src="/plugins/datatables/media/js/jquery.dataTables.js"></script>-->
    <!--<script src="/plugins/datatables/media/js/dataTables.bootstrap.js"></script>-->
    <!--<script src="/plugins/datatables/extensions/Responsive/js/dataTables.responsive.min.js"></script>-->
    <script src="/js/jquery.spring-friendly.min.js"></script>
    <script src="/plugins/webuploader-0.1.5/webuploader.js"></script>
    <script src="/plugins/select2/js/select2.full.min.js"></script>
    <script src="/js/gridCommon.js"></script>
    <script src="/pagejs/grade/subject/teacher/list.js"></script>
</div>

</html>
